import request from '@/utils/request'

// 查询书画管理列表
export function listPainting(query) {
  return request({
    url: '/system/painting/list',
    method: 'get',
    params: query
  })
}

// 查询书画管理详细
export function getPainting(id) {
  return request({
    url: '/system/painting/' + id,
    method: 'get'
  })
}

// 新增书画管理
export function addPainting(data) {
  return request({
    url: '/system/painting',
    method: 'post',
    data: data
  })
}

// 修改书画管理
export function updatePainting(data) {
  return request({
    url: '/system/painting',
    method: 'put',
    data: data
  })
}

// 删除书画管理
export function delPainting(id) {
  return request({
    url: '/system/painting/' + id,
    method: 'delete'
  })
}
